export const rules = {
  name: [
    {
      required: true,
      message: "请输入用户名",
      trigger: "blur"
    },
    {
      pattern: /^[a-zA-Z0-9]{5,10}$/,
      message: "用户名必须是5-10位的字符",
      trigger: "blur"
    }
  ],
  password: [
    {
      required: true,
      message: "请输入密码",
      trigger: "blur"
    },
    {
      pattern: /^[a-zA-Z0-9]{6,20}$/,
      message: "密码必须是6-20位的字符",
      trigger: "blur"
    }
  ]
};
